<form 
  action ='<?php echo url_for('usuario_referencia/filter') ?>' 
  id='form_filter_usuario_referencia' 
  name='form_filer_usuario_referencia' 
  method='POST' 
>

<table class="form">
	<tr><th colspan="2" class="title">Filtro</th></tr>
      <tr>
        <th><?php echo $form['no_banco']->renderLabel() ?></th>
        <td>
        	<?php 
        		echo $form['no_banco']->render(
        			array(
        				'name' => 'filter[no_banco]',
        				'value' => $filter->get('no_banco')
        			)	
        		)
        	?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['nu_agencia']->renderLabel() ?></th>
        <td>
        	<?php 
        		echo $form['nu_agencia']->render(
        			array(
        				'name' => 'filter[nu_agencia]',
        				'value' => $filter->get('nu_agencia')
        			)	
        		)
        	?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['nu_telefone_banco']->renderLabel() ?></th>
        <td>
        	<?php 
        		echo $form['nu_telefone_banco']->render(
        			array(
        				'name' => 'filter[nu_telefone_banco]',
        				'value' => $filter->get('nu_telefone_banco')
        			)	
        		)
        	?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['no_comercial']->renderLabel() ?></th>
        <td>
        	<?php 
        		echo $form['no_comercial']->render(
        			array(
        				'name' => 'filter[no_comercial]',
        				'value' => $filter->get('no_comercial')
        			)	
        		)
        	?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['nu_telefone_comercial']->renderLabel() ?></th>
        <td>
        	<?php 
        		echo $form['nu_telefone_comercial']->render(
        			array(
        				'name' => 'filter[nu_telefone_comercial]',
        				'value' => $filter->get('nu_telefone_comercial')
        			)	
        		)
        	?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['no_fornecedor']->renderLabel() ?></th>
        <td>
        	<?php 
        		echo $form['no_fornecedor']->render(
        			array(
        				'name' => 'filter[no_fornecedor]',
        				'value' => $filter->get('no_fornecedor')
        			)	
        		)
        	?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['nu_telefone_fornecedor']->renderLabel() ?></th>
        <td>
        	<?php 
        		echo $form['nu_telefone_fornecedor']->render(
        			array(
        				'name' => 'filter[nu_telefone_fornecedor]',
        				'value' => $filter->get('nu_telefone_fornecedor')
        			)	
        		)
        	?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['no_amigo']->renderLabel() ?></th>
        <td>
        	<?php 
        		echo $form['no_amigo']->render(
        			array(
        				'name' => 'filter[no_amigo]',
        				'value' => $filter->get('no_amigo')
        			)	
        		)
        	?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['nu_telefone_amigo']->renderLabel() ?></th>
        <td>
        	<?php 
        		echo $form['nu_telefone_amigo']->render(
        			array(
        				'name' => 'filter[nu_telefone_amigo]',
        				'value' => $filter->get('nu_telefone_amigo')
        			)	
        		)
        	?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['id_usuario']->renderLabel() ?></th>
        <td>
        	<?php 
        		echo $form['id_usuario']->render(
        			array(
        				'name' => 'filter[id_usuario]',
        				'value' => $filter->get('id_usuario')
        			)	
        		)
        	?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['created_at']->renderLabel() ?></th>
        <td>
        	<?php 
        		echo $form['created_at']->render(
        			array(
        				'name' => 'filter[created_at]',
        				'value' => $filter->get('created_at')
        			)	
        		)
        	?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['updated_at']->renderLabel() ?></th>
        <td>
        	<?php 
        		echo $form['updated_at']->render(
        			array(
        				'name' => 'filter[updated_at]',
        				'value' => $filter->get('updated_at')
        			)	
        		)
        	?>
        </td>
      </tr>
	<tr>
		<td colspan="2">
			<input type="submit" value=":: Filtrar ::" />
			&nbsp;
			<?php
			    if($filter->ativo()):
    				echo link_to(
    					':: Limpar ::',
    					$sf_context->getModuleName().'/filter',
    					array('class'=>'botao')
    				);
				endif;
			?>
		</td>
	</tr>
</table>
</form>